package cn.lg.soar.system.biz.filetemplate.model;

import cn.lg.soar.system.api.enums.AccessModeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @author luguoxiang
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@Getter
@Setter
public class UploadCompleteVO {

    @NotBlank(message = "上传id不能为空")
    @Schema(description = "上传id")
    private String uploadId;

    @Valid
    @NotEmpty(message = "分片签名不能为空")
    @Schema(description = "分片签名")
    private List<PartInfoVO> parts;

    @Schema(description = "访问模式")
    private AccessModeEnum accessMode;

}
